package com.chang.gulimall_auth;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

/**
 * @author changzhenxi
 * @param:
 * @return:
 * @date 2024/12/12 - 16:55
 * @history 2024/12/12 - 16:55 changzhenxi create
 * @EnableRedisHttpSession原理: 1, 导入RedisHttpSessionConfiguration配置
 * 1.1
 */

@EnableRedisHttpSession  // 整合redis作为session存储
@EnableFeignClients(basePackages = "com.chang.gulimall_auth.feign")  // 开启远程调用
@EnableDiscoveryClient //开启服务注册与发现
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class, HibernateJpaAutoConfiguration.class})
public class GulimallAuthApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallAuthApplication.class, args);
    }

}
